<!--
 要情 呈批
 @Author: zhanbh
 @Date: 2021-04-15
-->
<template>
  <module-tabs class="yq-approval" v-model="activeName" :tabs="tabs" is-flex-box>
    <template #first>
      <approval ref="approval" />
    </template>
    <template #header-btns v-if="activeName === 'first'">
      <dg-button type="primary" size="mini" @click="() => $refs.approval.onSubmit()">提交</dg-button>
      <dg-button size="mini" @click="() => $router.go(-1)">关闭</dg-button>
    </template>
  </module-tabs>
</template>

<script>
import ModuleTabs from '@/components/layout/module-tabs';
import Approval from '@/pages/ImportManagement/components/Approval';

export default {
  name: 'ImpApproval',
  components: {
    ModuleTabs,
    Approval
  },
  data() {
    return {
      tabs: [
        {
          label: '呈批',
          name: 'first'
        },
      ],
      activeName: 'first'
    };
  }
};
</script>

<style lang="scss" scoped>
.yq-approval {
  height: calc(100vh - 11rem);

  &__edit {
    position: absolute;
    top: 0;
    right: -100px;
  }

  &__director-list {
    display: flex;
    flex-wrap: wrap;
    padding: 4px 1rem 0 1rem;
    background-color: #f8f8f8;
    /deep/ .el-checkbox-group {
      width: 25%;
    }
  }
}
.edit-form {
  max-width: 1000px;
}
</style>
